package com.sc.nft.controller.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class CreateMallOrderRequest {

    @ApiModelProperty("活动Id")
    @NotNull(message = "活动id不能为空")
    private Long activityId;

    @ApiModelProperty("活动规格Id")
    @NotNull(message = "活动规格id不能为空")
    private Long specsId;

    @ApiModelProperty("兑换条件分组id")
    private Long groupId;

    @ApiModelProperty("收货地址id")
    @NotNull(message = "收货地址id不能为空")
    private Long mallDeliveryAddressId;

    @ApiModelProperty("数量")
    @Range(min = 1, max = 999, message = "数量不正确")
    private Integer count = 1;

    @ApiModelProperty("支付密码 兑换才需要")
    private String dealPwd;

    /**
     * API充值账号
     */
    @ApiModelProperty("API充值账号 虚拟商品下单时 此为必填项")
    private String apiChargeAccount;

    /**
     * 用户优惠券ID
     */
    @ApiModelProperty("用户优惠券ID")
    private Long userCouponsId;

    @ApiModelProperty("分享团队ID")
    private Long shareTeamId;

}
